package com.sanben.user.data.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author cyh
 * @description: 用户登录 Dto
 * @since 2020-08-11
 */
@Data
@Accessors(chain = true)
public class UserLoginDto {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotBlank(message = "随机数不能为空")
    @ApiModelProperty("随机数")
    private String randomStr;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(required = true, value = "验证码")
    private String code;
}
